package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Option;
import org.bson.types.ObjectId;

import java.util.List;

/**
 * @Description:
 * @Create by: wanglei
 * @Date: 2021/11/7 12:54
 */
//试题选项
public interface OptionApi {

    //保存
    void save(Option option);

    //根据QuestionId查询
    List<Option> findByQuestionId(String toHexString);

    //根据id，获取对象
    Option findById(ObjectId optionId);
}
